package com.xbongbong.paas.service.workflow.setting;

import com.xbongbong.paas.pojo.workflow.settings.WorkflowGetPojo;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.workflow.pojo.nodes.WorkflowConditionPojo;

import java.util.List;

/**
 * @author 吴峰
 * @date 2021/06/01 20:04
 */
public interface ConditionNodeFieldService {

    /**
     * 返回字段类型
     * @return
     */
    List<Integer> type();

    /**
     * 获取条件字段的解析
     * @param workflowConditionPojo
     * @param workflowGetPojo
     * @return
     * @throws XbbException
     */
    String conditionField(WorkflowConditionPojo workflowConditionPojo, WorkflowGetPojo workflowGetPojo) throws XbbException;
}
